import { createApp } from "vue";
import App from "./App.vue";
import router from "./router/index";
import * as echarts from "echarts";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import Vconsole from "vconsole";
// 引入element
const vueMain = createApp(App);
if (process.env.NODE_ENV === "development") {
  const vconsole = new Vconsole();
  vueMain.use(vconsole);
}
vueMain.use(ElementPlus).use(router);
vueMain.echarts = echarts;
vueMain.mount("#app");

/* document.body.addEventListener("plugin_web_update_notice", (e) => {
  window.location.reload();
}); */
export default vueMain;
